.class Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;
.super Lcom/hyphenate/chat/adapter/EMACallManagerListener;


# instance fields
.field final synthetic this$0:Lcom/hyphenate/chat/EMCallManager;


# direct methods
.method constructor <init>(Lcom/hyphenate/chat/EMCallManager;)V
    .locals 0

    iput-object p1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMACallManagerListener;-><init>()V

    return-void
.end method


# virtual methods
.method endReasonToCallError(Lcom/hyphenate/chat/EMCallSession$EndReason;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;
    .locals 3

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_NONE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    sget-object v1, Lcom/hyphenate/chat/EMCallManager$6;->$SwitchMap$com$hyphenate$chat$EMCallSession$EndReason:[I

    invoke-virtual {p1}, Lcom/hyphenate/chat/EMCallSession$EndReason;->ordinal()I

    move-result v2

    aget v1, v1, v2

    packed-switch v1, :pswitch_data_0

    :cond_0
    :goto_0
    return-object v0

    :pswitch_0
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_NONE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :pswitch_1
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_NORESPONSE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :pswitch_2
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->REJECTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :pswitch_3
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_BUSY:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :pswitch_4
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_TRANSPORT:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    invoke-virtual {p2}, Lcom/hyphenate/chat/adapter/EMAError;->errCode()I

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p2}, Lcom/hyphenate/chat/adapter/EMAError;->errCode()I

    move-result v1

    const/16 v2, 0x322

    if-ne v1, v2, :cond_1

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_UNAVAILABLE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :cond_1
    invoke-virtual {p2}, Lcom/hyphenate/chat/adapter/EMAError;->errCode()I

    move-result v1

    const/16 v2, 0x321

    if-ne v1, v2, :cond_2

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_UNAVAILABLE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :cond_2
    invoke-virtual {p2}, Lcom/hyphenate/chat/adapter/EMAError;->errCode()I

    move-result v1

    const/16 v2, 0x323

    if-ne v1, v2, :cond_0

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_TRANSPORT:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :pswitch_5
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;->ERROR_UNAVAILABLE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method

.method public onConferenceClosed(Lcom/hyphenate/chat/adapter/EMACallConference;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onConferenceClosed sessionId:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3}, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;->onConferenceClosed(Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mViewBinders:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;

    iget-object v2, v0, Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;->localView:Lcom/superrtc/sdk/VideoView;

    instance-of v2, v2, Lcom/hyphenate/media/EMOppositeSurfaceView;

    if-eqz v2, :cond_1

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;->localView:Lcom/superrtc/sdk/VideoView;

    check-cast v0, Lcom/hyphenate/media/EMOppositeSurfaceView;

    invoke-virtual {v0}, Lcom/hyphenate/media/EMOppositeSurfaceView;->release()V

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mViewBinders:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/hyphenate/chat/EMCallManager;->mFirstOppositeRenderer:Z

    return-void
.end method

.method public onConferenceMemberJoined(Lcom/hyphenate/chat/adapter/EMACallConference;Ljava/lang/String;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onConferenceMemberEntered sessionId:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " enteredName:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3, p2}, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;->onConferenceMemberEntered(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onConferenceMemberLeaved(Lcom/hyphenate/chat/adapter/EMACallConference;Ljava/lang/String;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onConferenceMemberExited sessionId:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " leavedName:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3, p2}, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;->onConferenceMemberExited(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onConferenceMemberPublished(Lcom/hyphenate/chat/adapter/EMACallConference;Ljava/lang/String;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onConferenceMemberPublished sessionId:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " publishedName:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3, p2}, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;->onConferenceMemberPublished(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onConferenceMembersUpdated(Lcom/hyphenate/chat/adapter/EMACallConference;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onConferenceMembersUpdated sessionId:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mConferenceListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallConference;->getCallId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v3}, Lcom/hyphenate/chat/EMCallManager$EMConferenceListener;->onConferenceMembersUpdated(Ljava/lang/String;)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method

.method public onNewRtcConnection(Ljava/lang/String;ILcom/hyphenate/chat/adapter/EMACallStream;Ljava/lang/String;Lcom/superrtc/sdk/RtcConnection$Listener;Lcom/hyphenate/chat/adapter/EMACallRtcImpl;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onNewRtcConnection, mode:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " remoteName: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p6, :cond_0

    if-nez p5, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-object v0, Lcom/hyphenate/chat/adapter/EMACallSession$Mode;->CONFERENCE:Lcom/hyphenate/chat/adapter/EMACallSession$Mode;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallSession$Mode;->ordinal()I

    move-result v0

    if-ne p2, v0, :cond_3

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    invoke-virtual {v0, p3}, Lcom/hyphenate/chat/EMCallManager;->getRenderer(Lcom/hyphenate/chat/adapter/EMACallStream;)Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;

    move-result-object v0

    if-eqz v0, :cond_2

    const-string/jumbo v1, "EMCallManager"

    const-string/jumbo v2, "get new View rtc binder"

    invoke-static {v1, v2}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;->bindRtc:Z

    iget-object v1, v0, Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;->rtc:Lcom/superrtc/sdk/RtcConnection;

    invoke-virtual {v1, p5}, Lcom/superrtc/sdk/RtcConnection;->setListener(Lcom/superrtc/sdk/RtcConnection$Listener;)V

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager$ViewRendererBinder;->rtc:Lcom/superrtc/sdk/RtcConnection;

    invoke-virtual {p6, v1, v0}, Lcom/hyphenate/chat/adapter/EMACallRtcImpl;->setRtcConnection(Lcom/hyphenate/chat/EMCallManager;Lcom/superrtc/sdk/RtcConnection;)V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v1, "can not find ViewRendererBinder"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_3
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcConnection:Lcom/superrtc/sdk/RtcConnection;

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "rtc:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/hyphenate/chat/EMCallManager;->createRtcConnection(Ljava/lang/String;)Lcom/superrtc/sdk/RtcConnection;

    move-result-object v2

    iput-object v2, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcConnection:Lcom/superrtc/sdk/RtcConnection;

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcConnection:Lcom/superrtc/sdk/RtcConnection;

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v2, v2, Lcom/hyphenate/chat/EMCallManager;->mProcessorDelegate:Lcom/hyphenate/chat/EMCallManager$EMCameraDataProcessorDelegate;

    invoke-virtual {v0, v2}, Lcom/superrtc/sdk/RtcConnection;->setRtcCameraDataProcessor(Lcom/superrtc/sdk/RtcConnection$RtcCameraDataProcessor;)V

    :cond_4
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iput-object p5, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcConnection:Lcom/superrtc/sdk/RtcConnection;

    invoke-virtual {v0, p5}, Lcom/superrtc/sdk/RtcConnection;->setListener(Lcom/superrtc/sdk/RtcConnection$Listener;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v2, v2, Lcom/hyphenate/chat/EMCallManager;->mRtcConnection:Lcom/superrtc/sdk/RtcConnection;

    invoke-virtual {p6, v0, v2}, Lcom/hyphenate/chat/adapter/EMACallRtcImpl;->setRtcConnection(Lcom/hyphenate/chat/EMCallManager;Lcom/superrtc/sdk/RtcConnection;)V

    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public onRecvCallAccepted(Lcom/hyphenate/chat/adapter/EMACallSession;)V
    .locals 3

    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v1, "onReceiveCallAccepted"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    new-instance v2, Lcom/hyphenate/chat/EMCallSession;

    invoke-direct {v2, p1}, Lcom/hyphenate/chat/EMCallSession;-><init>(Lcom/hyphenate/chat/adapter/EMACallSession;)V

    iput-object v2, v0, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    :cond_0
    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v2, "onReceiveCallAccepted"

    invoke-static {v0, v2}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    sget-object v2, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->ACCEPTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    invoke-virtual {v0, v2}, Lcom/hyphenate/chat/EMCallManager;->changeState(Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;)V

    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public onRecvCallConnected(Lcom/hyphenate/chat/adapter/EMACallSession;)V
    .locals 2

    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v1, "onRecvSessionConnected"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onRecvCallEnded(Lcom/hyphenate/chat/adapter/EMACallSession;ILcom/hyphenate/chat/adapter/EMAError;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onReceiveCallTerminated, reasonOrdinal: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    const/4 v2, 0x0

    iput-object v2, v0, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    :cond_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    sget-object v2, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->DISCONNECTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    invoke-static {p2}, Lcom/hyphenate/chat/EMCallSession;->getEndReason(I)Lcom/hyphenate/chat/EMCallSession$EndReason;

    move-result-object v3

    invoke-virtual {p0, v3, p3}, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->endReasonToCallError(Lcom/hyphenate/chat/EMCallSession$EndReason;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lcom/hyphenate/chat/EMCallManager;->changeState(Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;Lcom/hyphenate/chat/EMCallStateChangeListener$CallError;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    const/4 v2, 0x0

    iput-object v2, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcConnection:Lcom/superrtc/sdk/RtcConnection;

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    const/4 v2, 0x0

    iput-object v2, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public onRecvCallFeatureUnsupported(Lcom/hyphenate/chat/adapter/EMACallSession;Lcom/hyphenate/chat/adapter/EMAError;)V
    .locals 3

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onRecvCallFeatureUnsupported, callId:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallSession;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onRecvCallIncoming(Lcom/hyphenate/chat/adapter/EMACallSession;)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v1, "onRecvSessionRemoteInitiate"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    new-instance v2, Lcom/hyphenate/chat/EMCallSession;

    invoke-direct {v2, p1}, Lcom/hyphenate/chat/EMCallSession;-><init>(Lcom/hyphenate/chat/adapter/EMACallSession;)V

    iput-object v2, v0, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    sget-object v2, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->RINGING:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    invoke-virtual {v0, v2}, Lcom/hyphenate/chat/EMCallManager;->changeState(Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;)V

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMCallManager;->getIncomingCallBroadcastAction()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "type"

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMCallSession;->getType()Lcom/hyphenate/chat/EMCallSession$Type;

    move-result-object v0

    sget-object v3, Lcom/hyphenate/chat/EMCallSession$Type;->VIDEO:Lcom/hyphenate/chat/EMCallSession$Type;

    if-ne v0, v3, :cond_0

    const-string/jumbo v0, "video"

    :goto_0
    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "from"

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v2, v2, Lcom/hyphenate/chat/EMCallManager;->currentSession:Lcom/hyphenate/chat/EMCallSession;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMCallSession;->getRemoteName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "to"

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMClient;->getCurrentUser()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    return-void

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_0
    const-string/jumbo v0, "voice"

    goto :goto_0
.end method

.method public onRecvCallNetworkStatusChanged(Lcom/hyphenate/chat/adapter/EMACallSession;I)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onRecvCallNetworkStatusChanged, callId: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallSession;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " toStatus:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->DISCONNECTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;->CONNECTED:Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_0

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->NETWORK_NORMAL:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    :goto_0
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v1, Lcom/hyphenate/chat/EMCallManager;->callState:Lcom/hyphenate/chat/EMCallManager$CallStateUnion;

    invoke-virtual {v1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v1, "onRecvCallNetworkStatusChanged toStatus equals to current callState"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void

    :cond_0
    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;->UNSTABLE:Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_1

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->NETWORK_UNSTABLE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    goto :goto_0

    :cond_1
    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;->DISCONNECTED:Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$NetworkStatus;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_2

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->NETWORK_DISCONNECTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    goto :goto_0

    :cond_2
    :try_start_0
    new-instance v1, Lcom/hyphenate/exceptions/HyphenateException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "onRecvCallNetworkStatusChanged invalid toStatus:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/hyphenate/exceptions/HyphenateException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_0
    .catch Lcom/hyphenate/exceptions/HyphenateException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Lcom/hyphenate/exceptions/HyphenateException;->printStackTrace()V

    goto :goto_0

    :cond_3
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMCallManager;->changeState(Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;)V

    goto :goto_1
.end method

.method public onRecvCallStateChanged(Lcom/hyphenate/chat/adapter/EMACallSession;I)V
    .locals 4

    const-string/jumbo v0, "EMCallManager"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onRecvCallStateChanged, callId: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMACallSession;->getCallId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " StreamControlType:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->DISCONNECTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->PAUSE_VIDEO:Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_0

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->VIDEO_PAUSE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    :goto_0
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v1, v1, Lcom/hyphenate/chat/EMCallManager;->callState:Lcom/hyphenate/chat/EMCallManager$CallStateUnion;

    invoke-virtual {v1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    const-string/jumbo v0, "EMCallManager"

    const-string/jumbo v1, "onRecvCallStateChanged toStatus equals to current callState"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void

    :cond_0
    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->PAUSE_VOICE:Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_1

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->VOICE_PAUSE:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    goto :goto_0

    :cond_1
    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->RESUME_VIDEO:Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_2

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->VIDEO_RESUME:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    goto :goto_0

    :cond_2
    sget-object v1, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->RESUME_VOICE:Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMACallSession$StreamControlType;->ordinal()I

    move-result v1

    if-ne p2, v1, :cond_3

    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->VOICE_RESUME:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    goto :goto_0

    :cond_3
    :try_start_0
    new-instance v1, Lcom/hyphenate/exceptions/HyphenateException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, "onRecvCallStateChanged invalid streamControlType:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/hyphenate/exceptions/HyphenateException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_0
    .catch Lcom/hyphenate/exceptions/HyphenateException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Lcom/hyphenate/exceptions/HyphenateException;->printStackTrace()V

    goto :goto_0

    :cond_4
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/EMCallManager;->changeState(Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;)V

    goto :goto_1
.end method

.method public onSendPushMessage(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mPushProvider:Lcom/hyphenate/chat/EMCallManager$EMCallPushProvider;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$EMACallListenerDelegate;->this$0:Lcom/hyphenate/chat/EMCallManager;

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->defaultProvider:Lcom/hyphenate/chat/EMCallManager$EMCallPushProvider;

    invoke-interface {v0, p2}, Lcom/hyphenate/chat/EMCallManager$EMCallPushProvider;->onRemoteOffline(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    invoke-interface {v0, p2}, Lcom/hyphenate/chat/EMCallManager$EMCallPushProvider;->onRemoteOffline(Ljava/lang/String;)V

    goto :goto_0
.end method
